
import 'package:json_annotation/json_annotation.dart';
import 'package:reabampos/src/reabam/operation/bean/base/rb_request.dart';
import 'package:reabampos/src/reabam/operation/bean/base/rb_response.dart';

//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
part 'bean_paytype.g.dart';

@JsonSerializable(explicitToJson: true)
class PayTypeRequest extends RBBaseRequest{

  String? equipmentIdentity; //商米使用, "sumipay"

   PayTypeRequest({this.equipmentIdentity}):super();

   //添加固定格式
   factory PayTypeRequest.fromJson(Map<String, dynamic> json) => _$PayTypeRequestFromJson(json);
   @override
  Map<String, dynamic> toJson() => _$PayTypeRequestToJson(this);

}


@JsonSerializable(explicitToJson: true)
class PayTypeResponse extends RBBaseResponse{

  List<Bean_PayType>? DataLine;

  PayTypeResponse({this.DataLine});

  //添加固定格式
  factory PayTypeResponse.fromJson(Map<String, dynamic> json) => _$PayTypeResponseFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$PayTypeResponseToJson(this);

}

@JsonSerializable(explicitToJson: true)
class Bean_PayType{

   String? code;
   String? name;
   String? status;
   int defaultWay=0;
  //是否可手工输入卡号 1是0否(实体卡券专用)
   int manualInput=0;
   bool payTone=false;//声音
   bool isNew=false;//声音
  //hyl 2017.7.20
   int isSystem=0;
   String? logo;

   Bean_PayType(
       {this.code,
         this.name,
         this.status,
         this.defaultWay=0,
     this.manualInput=0,
         this.payTone=false,
         this.isNew=false,
         this.isSystem=0,
         this.logo
       }
       );

   //添加固定格式
   factory Bean_PayType.fromJson(Map<String, dynamic> json) => _$Bean_PayTypeFromJson(json);
   Map<String, dynamic> toJson() => _$Bean_PayTypeToJson(this);

}


@JsonSerializable(explicitToJson: true)
class BeanH5OfflinePay{

   String? requsetId;
   String? fastOrderNo;
   String? cashier;
   String? companyId;
   String? creatDate;
   dynamic payStatus;
   dynamic payParams;

  BeanH5OfflinePay({
    this.requsetId,
    this.fastOrderNo,
    this.companyId,
    this.creatDate,
    this.payStatus,
    this.payParams,
  });

  //添加固定格式
  factory BeanH5OfflinePay.fromJson(Map<String, dynamic> json) => _$BeanH5OfflinePayFromJson(json);
  Map<String, dynamic> toJson() => _$BeanH5OfflinePayToJson(this);

}

@JsonSerializable(explicitToJson: true)
class ResponseGetOfflinePay{

   String? msg;
   String? code;
   String? fastOrderNo;
   List<dynamic>? items;


  ResponseGetOfflinePay({
    this.msg,
    this.fastOrderNo,
    this.code,
    this.items,
  });

  //添加固定格式
  factory ResponseGetOfflinePay.fromJson(Map<String, dynamic> json) => _$ResponseGetOfflinePayFromJson(json);
  Map<String, dynamic> toJson() => _$ResponseGetOfflinePayToJson(this);

}